package com.cwd.arm.infrastructure.dao.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.cwd.arm.infrastructure.dao.DictDao;
import com.cwd.arm.infrastructure.mapper.DictMapper;
import com.cwd.arm.infrastructure.po.DictPo;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* Description:数据字典
* Created on 2021年11月19日
* @author  yan
*/
@Service
public class DictDaoImpl extends ServiceImpl<DictMapper, DictPo> implements DictDao {

    @Override
    public List<DictPo> selectList(String type) {
        QueryWrapper<DictPo> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("dict_type",type);
        queryWrapper.orderByAsc("sort_id");
        return list(queryWrapper);
    }
}
